<template>
  <el-dialog
    title="皮肤大赛 - 案例指派评委"
    :visible.sync="dialogVisible"
    width="30%"
    :center="true"
    :before-close="handleClose"
    @
  >
    <div>
      选择评委：
      <el-select v-model="name" placeholder="选择评委名称">
        <el-option label="测试" value="test"></el-option>
      </el-select>
    </div>

    <div slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
      <el-button type="primary" @click="onOk">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  props: ['dialogVisible'],
  watch: {
    dialogVisible() {
      console.log('this', this.dialogVisible)
    }
  },

  data() {
    return {
      name: ''
    }
  },
  methods: {
    onOk() {
      this.$emit('onOk', { name: this.name })
    },
    handleClose() {
      this.$emit('onClose')
    }
  }
}
</script>
